﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.FoundationContext;
using SlamDunk.ValueObjects.Enums;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.StockContext
{
    /// <summary>
    /// 库存单据数据传输对象
    /// </summary>
    [DataContract]
    public class StockOrderInfo : BaseDTO
    {
        #region 库存单据类Id —— Guid StockOrderClassId
        /// <summary>
        /// 库存单据类Id
        /// </summary>
        [DataMember]
        public Guid StockOrderClassId { get; set; }
        #endregion

        #region 出/入库方向类型 —— StockDirectionType DirectionType
        /// <summary>
        /// 出/入库方向类型
        /// </summary>
        [DataMember]
        public StockDirectionType DirectionType { get; set; }
        #endregion

        #region 源单据类型 —— SourceOrderType? SourceOrderType
        /// <summary>
        /// 源单据类型
        /// </summary>
        [DataMember]
        public SourceOrderType? SourceOrderType { get; set; }
        #endregion

        #region 源单据Id —— string SourceOrderId
        /// <summary>
        /// 源单据Id
        /// </summary>
        [DataMember]
        public string SourceOrderId { get; set; }
        #endregion

        #region 源单据名称 —— string SourceOrderName
        /// <summary>
        /// 源单据名称
        /// </summary>
        [DataMember]
        public string SourceOrderName { get; set; }
        #endregion

        #region 工厂模型Id —— Guid? FacilityId
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DataMember]
        public Guid? FacilityId { get; set; }
        #endregion

        #region 提审人账号 —— string SubmitterAccount
        /// <summary>
        /// 提审人账号
        /// </summary>
        [DataMember]
        public string SubmitterAccount { get; set; }
        #endregion

        #region 提审人姓名 —— string SubmitterName
        /// <summary>
        /// 提审人姓名
        /// </summary>
        [DataMember]
        public string SubmitterName { get; set; }
        #endregion

        #region 审核状态 —— CheckStatus CheckStatus
        /// <summary>
        /// 审核状态
        /// </summary>
        [DataMember]
        public CheckStatus CheckStatus { get; set; }
        #endregion

        #region 审核意见 —— string CheckedRemark
        /// <summary>
        /// 审核意见
        /// </summary>
        [DataMember]
        public string CheckedRemark { get; set; }
        #endregion

        #region 审核人账号 —— string CheckerAccount
        /// <summary>
        /// 审核人账号
        /// </summary>
        [DataMember]
        public string CheckerAccount { get; set; }
        #endregion

        #region 审核人姓名 —— string CheckerName
        /// <summary>
        /// 审核人姓名
        /// </summary>
        [DataMember]
        public string CheckerName { get; set; }
        #endregion

        #region 审核时间 —— DateTime? CheckedTime
        /// <summary>
        /// 审核时间
        /// </summary>
        [DataMember]
        public DateTime? CheckedTime { get; set; }
        #endregion

        #region 创建人账号 —— string CreatorAccount
        /// <summary>
        /// 创建人账号
        /// </summary>
        [DataMember]
        public string CreatorAccount { get; set; }
        #endregion

        #region 创建人姓名 —— string CreatorName
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [DataMember]
        public string CreatorName { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 工厂模型 —— FacilityInfo FacilityInfo
        /// <summary>
        /// 导航属性 - 工厂模型
        /// </summary>
        [DataMember]
        public FacilityInfo FacilityInfo { get; set; }
        #endregion
    }
}
